export function myNumber (num) {
    var totalArray = ('' + num).split('')
    var _html = ''
    for (var i = 0; i < totalArray.length; i++) {
        if (totalArray.length % 3 === 1) {
            if (i % 3 === 1) {
                _html += ','
                _html += totalArray[i]
            } else {
                _html += totalArray[i]
            }
        } else if (totalArray.length % 3 === 2) {
            if (i % 3 === 2) {
                _html += ','
                _html += totalArray[i]
            } else {
                _html += totalArray[i]
            }
        } else {
            if (i % 3 === 0 && i > 0) {
                _html += ','
                _html += totalArray[i]
            } else {
                _html += totalArray[i]
            }
        }
    }
    return _html
}
